package com.qianfeng.openapi.web.master.mapper;

import com.qianfeng.openapi.web.master.pojo.Customer;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustomerMapper {

    int insertCustomer(Customer customer);

    int updateCustomer(Customer customer);

    int deleteCustomer(Long id);

    Customer getCustomerById(Long id);

    List<Customer> getAllCustomers();

    void deleteCustomers(Long[] ids);

    List<Customer> selectCustomerByCondition(@Param("username") String username, @Param("state") Integer state);
}
